Skip to content

ORListener block for new events to reduce cpu usage#68

Merged
chavdar merged 1 commit intolinkedin:masterfrom
andyqzb:master
Nov 15, 2015
Merged

ORListener block for new events to reduce cpu usage#68
chavdar merged 1 commit intolinkedin:masterfrom
andyqzb:master

Conversation

@andyqzb
Copy link
Copy Markdown
Contributor

@andyqzb andyqzb commented Nov 6, 2015

Let ORListener thread call a poll when drainTo returns no event. In this way, ORListener will block for new events instead of running the empty loop.
This patch will reduce the cpu usage of relay significantly when there are only a few events in the database.

chavdar added a commit that referenced this pull request Nov 15, 2015
ORListener block for new events to reduce cpu usage
@chavdar chavdar merged commit 237cb1c into linkedin:master Nov 15, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants